package com.bicon.base.data.pojo.botu;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 存放商城订单明细信息
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("order_goods")
public class OrderGoods extends Model<OrderGoods> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private String id;
    /**
     * 总订单id
     */
    @TableField("max_order_id")
    private String maxOrderId;
    /**
     * 订单号
     */
    @TableField("main_order_no")
    private String mainOrderNo;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 支付方式：0余额 1支付宝 2微信 3银行卡
     */
    @TableField("pay_way")
    private Integer payWay;
    /**
     * 支付时间
     */
    @TableField("pay_time")
    private Date payTime;
    /**
     * 取消订单订单原因
     */
    @TableField("cancel_order")
    private String cancelOrder;
    /**
     * 支付来源  0 IOS 1 安卓
     */
    @TableField("order_source")
    private Integer orderSource;
    /**
     * 店铺id
     */
    @TableField("store_id")
    private String storeId;
    /**
     * 运费金额
     */
    private BigDecimal freight;
    /**
     * 配送方式  0快递物流  1上门自提 
     */
    @TableField("distribution_way")
    private Integer distributionWay;
    /**
     * 买家留言
     */
    @TableField("buyer_message")
    private String buyerMessage;
    /**
     * 我的发票id  开发票和不开发票
     */
    @TableField("invoice_id")
    private String invoiceId;
    /**
     * 删除标志：0正常，1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 订单状态，0:提交订单前 1：待支付，2：已支付（待发货），3：已发货，4：交易成功 5：交易关闭，6：取消订单 7交易中
     */
    @TableField("pay_state")
    private Integer payState;
    /**
     * 物流公司
     */
    @TableField("logistics_company")
    private String logisticsCompany;
    /**
     * 分组订单编号
     */
    @TableField("order_goods_no")
    private String orderGoodsNo;
    /**
     * 收款订单号
     */
    @TableField("order_receipt_id")
    private String orderReceiptId;
    /**
     * 发货id
     */
    @TableField("order_deliver_id")
    private String orderDeliverId;
    /**
     * 已读和未读  0未读  1已读
     */
    @TableField("check_status")
    private Integer checkStatus;
    /**
     * 评价状态  0未评价  1已评价
     */
    @TableField("evaluate_state")
    private Integer evaluateState;
    /**
     * 成交时间
     */
    @TableField("deal_time")
    private Date dealTime;
    /**
     * 用户账号
     */
    private String account;
    /**
     * 优惠券id
     */
    @TableField("discount_id")
    private String discountId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMaxOrderId() {
        return maxOrderId;
    }

    public void setMaxOrderId(String maxOrderId) {
        this.maxOrderId = maxOrderId;
    }

    public String getMainOrderNo() {
        return mainOrderNo;
    }

    public void setMainOrderNo(String mainOrderNo) {
        this.mainOrderNo = mainOrderNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getPayWay() {
        return payWay;
    }

    public void setPayWay(Integer payWay) {
        this.payWay = payWay;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getCancelOrder() {
        return cancelOrder;
    }

    public void setCancelOrder(String cancelOrder) {
        this.cancelOrder = cancelOrder;
    }

    public Integer getOrderSource() {
        return orderSource;
    }

    public void setOrderSource(Integer orderSource) {
        this.orderSource = orderSource;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public BigDecimal getFreight() {
        return freight;
    }

    public void setFreight(BigDecimal freight) {
        this.freight = freight;
    }

    public Integer getDistributionWay() {
        return distributionWay;
    }

    public void setDistributionWay(Integer distributionWay) {
        this.distributionWay = distributionWay;
    }

    public String getBuyerMessage() {
        return buyerMessage;
    }

    public void setBuyerMessage(String buyerMessage) {
        this.buyerMessage = buyerMessage;
    }

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getPayState() {
        return payState;
    }

    public void setPayState(Integer payState) {
        this.payState = payState;
    }

    public String getLogisticsCompany() {
        return logisticsCompany;
    }

    public void setLogisticsCompany(String logisticsCompany) {
        this.logisticsCompany = logisticsCompany;
    }

    public String getOrderGoodsNo() {
        return orderGoodsNo;
    }

    public void setOrderGoodsNo(String orderGoodsNo) {
        this.orderGoodsNo = orderGoodsNo;
    }

    public String getOrderReceiptId() {
        return orderReceiptId;
    }

    public void setOrderReceiptId(String orderReceiptId) {
        this.orderReceiptId = orderReceiptId;
    }

    public String getOrderDeliverId() {
        return orderDeliverId;
    }

    public void setOrderDeliverId(String orderDeliverId) {
        this.orderDeliverId = orderDeliverId;
    }

    public Integer getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(Integer checkStatus) {
        this.checkStatus = checkStatus;
    }

    public Integer getEvaluateState() {
        return evaluateState;
    }

    public void setEvaluateState(Integer evaluateState) {
        this.evaluateState = evaluateState;
    }

    public Date getDealTime() {
        return dealTime;
    }

    public void setDealTime(Date dealTime) {
        this.dealTime = dealTime;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getDiscountId() {
        return discountId;
    }

    public void setDiscountId(String discountId) {
        this.discountId = discountId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderGoods{" +
        "id=" + id +
        ", maxOrderId=" + maxOrderId +
        ", mainOrderNo=" + mainOrderNo +
        ", userId=" + userId +
        ", payWay=" + payWay +
        ", payTime=" + payTime +
        ", cancelOrder=" + cancelOrder +
        ", orderSource=" + orderSource +
        ", storeId=" + storeId +
        ", freight=" + freight +
        ", distributionWay=" + distributionWay +
        ", buyerMessage=" + buyerMessage +
        ", invoiceId=" + invoiceId +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", payState=" + payState +
        ", logisticsCompany=" + logisticsCompany +
        ", orderGoodsNo=" + orderGoodsNo +
        ", orderReceiptId=" + orderReceiptId +
        ", orderDeliverId=" + orderDeliverId +
        ", checkStatus=" + checkStatus +
        ", evaluateState=" + evaluateState +
        ", dealTime=" + dealTime +
        ", account=" + account +
        ", discountId=" + discountId +
        "}";
    }
}
